<template>
  <div class="page bg">
    <Navbarelder title="项目投资码" />
    <div style="padding: 0 16px">
      <div class="code-title">{{ projectName }}项目投资码</div>
      <div class="code-box bg f-c j-c a-c">
        <vue-qr
          v-if="codeUrl"
          :text="codeUrl"
          :size="241"
          :logo-scale="0.2"
        />
      </div>
    </div>
  </div>
</template>

<script>
import VueQr from 'vue-qr' // vue2.0
export default {
  name: 'ProjectCode2',
  components: {
    VueQr
  },
  data() {
    return {
      projectId: '',
      projectName: '',
      codeUrl: ''
    }
  },
  created() {
    const { projectName, projectId } = this.$route.query
    this.codeUrl = baseUrl + '/#/project-process?projectId=' + projectId
    this.projectId = projectId
    this.projectName = projectName
  },
  methods: {}
}
</script>

<style scoped lang="scss">
.page {
    background-color: #2F86FD;
    .code-title {
        // height: 25px;
        font-size: 22px;
        font-family: PingFang SC;
        font-weight: 500;
        color: #FFFFFF;
        margin: 54px 0 34px 0;
        text-align: center;
    }
    .code-box {
        margin: 0 auto;
        width: 321px;
        height: 382px;
        border-radius: 10px;
        background-image: url('~@/assets/my/code_bg.png');
        .code-img {
            margin: 20px 0;
        }
        .code-desc {
            font-size: 15px;
            font-family: PingFang SC;
            font-weight: 500;
            color: #999999;
        }
    }
}
</style>
